package com.test.tiles.model.vo;

import java.util.List;

public class Page {
	private List<? extends Object> obj;
	private int pageNum = 1;
	private int pageSize = 40;
	private int startInx = 0;
	private int totCnt = 0;
	
	public int getTotCnt() {
		return totCnt;
	}

	public List<? extends Object> getObj() {
		return obj;
	}




	public void setObj(List<? extends Object> obj) {
		this.obj = obj;
	}




	public void setTotCnt(int totCnt) {
		this.totCnt = totCnt;
	}


	public void setStartInx(int startInx) {
		this.startInx = startInx;
	}


	public int getStartInx() {
		this.startInx = (this.pageNum -1) * this.pageSize ; 
		return startInx;
	}


	public Page() {
		// TODO Auto-generated constructor stub
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	

}
